#include <stdio.h>

// use first argument "-" to specify stdin. 
int main (int argc, char * argv[]) {

  FILE *fp;
  if (argv[1][0] == '-' &&
      argv[1][1] == '\0') {
      fp = stdin; 
  }
  else fp = fopen(argv[1], "r");
  int temp;
  int result;
  int tot;
  int count = 0;
  tot =0;
  while (1) {
    result = fscanf(fp, " %d ", &temp);
    if(result != 1) break;
    if ( temp > 127 || temp < -128) {
      fprintf(stderr, "Integer number %d to large to fit in a byte. Omitting it.\n", temp);
    }
    else printf("%c", (signed char) temp);
    tot +=temp;
    count++;
  }

}
